]> dgit.raspbian.org Git - gnome-shell.git/commit
lookingGlass: Only update window list when visible
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 12 Sep 2019 18:45:04 +0000 (15:45 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 13 Sep 2019 00:49:38 +0000 (00:49 +0000)
commit43b4f2c7d5f975ca6589970f284f5eb7d4ed45db
tree56e7b12f69a1aae30edcb897b0ba74fe79c291bc
parent7eb4088f45fda1c7292393112542be5a3ea03a49
lookingGlass: Only update window list when visible

Updating the window list in the Looking Glass is a costly
operation: it destroys a whole lot of actors, and recreates
them. This triggers CSS changes, repaints, and allocations.

It is specially bad when paired with Wayland's big number
of window creations and deletions when showing Builder's
and Epiphany's popup window.

Only update the window list in the Looking Glass when it is
visible.

Related: https://gitlab.gnome.org/GNOME/mutter/issues/556

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/719
js/ui/lookingGlass.js